#include "Monitor.h"

Monitor::Monitor():WP(PROPERTIES),WU(USERS,PROPERTIES){
    this->set_title("Aplicación Monitor") ;
    this->set_border_width(10) ;
    this->m_Notebook.append_page(this->WP, "Properties") ;
    this->m_Notebook.append_page(this->WF, "Grafico transmision") ;
    this->m_Notebook.append_page(this->WU, "Registro Users") ;
    this->add( this->m_Notebook ) ;
    this->show_all_children();
}


bool Monitor::on_delete_event(GdkEventAny* event)
{
    this->WP.VolcarFile();
    this->WU.VolcarFile();
    this->WU.CrearCarpetasDeUsuarios();
    syslog (LOG_INFO, "Servidor Actualizado");
    return false;
}
